/**
 * @description 异常捕获的状态拦截，请勿修改
 */
const state = () => ({
  showProgress: false,
  msgInfo: {},
})
const getters = {
  showProgress: (state) => state.showProgress,
  msgInfo: (state) => state.msgInfo,
}
const mutations = {
  setMsgInfo(state, msgInfo) {
    state.msgInfo = msgInfo
  },
  setShowProgressStatus(state, showProgress) {
    state.showProgress = showProgress
  },
}
const actions = {
  setMsgInfo({ commit }, msgInfo) {
    commit('setMsgInfo', msgInfo)
  },
  setShowProgressStatus({ commit }, showProgress) {
    commit('setShowProgressStatus', showProgress)
  },
}
export default { state, getters, mutations, actions }
